#ifndef AT_NETWORK_NTP_h
#define AT_NETWORK_NTP_h

#include "AtNetworkDevice.h"

class AtNetworkNtp {
  protected:
    AtNetworkDevice *device;

  public:
    AtNetworkNtp(AtNetworkDevice *device) {
      this->device = device;
    };

    /**
     * 从网络模块获取当前时间(需要手动调用lock)
     */
    virtual tm getTimeStruct(uint32_t timeout = 1000) = 0;
};

#endif